package DHT.Chord.OpenChord.DHTFurtherClass;

import java.io.Serializable;

public class Node implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String IP;
	
	private int port;
	
	public Node(String IP, int port){
		
		this.IP = IP;
		this.port = port;
		
	}
	
	public String GetNodeIP(){
		
		return IP;
		
	}
	
	public int GetNodePort(){
		
		return port;
		
	}
	
	public void SetNodeIP(String IP){
		
		this.IP = IP;
		
	}
	
	public void SetNodePort(int port){
		
		this.port = port;
		
	}
	
	public String toString(){
		
		return IP+":"+port;
		
	}
	
}
